package com.siyu.preplan.planpdepot.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.preplan.planpdepot.mapper.PlanPDepotMapper;
import com.siyu.preplan.planpdepot.domain.PlanPDepot;
import com.siyu.preplan.planpdepot.service.IPlanPDepotService;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.siyu.preplan.planpdepot.mapper.PlanPDepotMapper;
import com.siyu.preplan.planpdepot.domain.PlanPDepot;
import com.siyu.preplan.planpdepot.service.IPlanPDepotService;

/**
 * 预案仓库基础信息Service业务层处理
 *
 * @author hrhy
 * @date 2024-08-14
 */
@Service
public class PlanPDepotServiceImpl extends ServiceImpl<PlanPDepotMapper, PlanPDepot> implements IPlanPDepotService
{
    @Autowired
    private PlanPDepotMapper planPDepotMapper;

    /**
     * 查询预案仓库基础信息
     *
     * @param id 预案仓库基础信息主键
     * @return 预案仓库基础信息
     */
    @Override
    public PlanPDepot selectPlanPDepotById(String id)
    {
        return planPDepotMapper.selectPlanPDepotById(id);
    }

    /**
     * 查询预案仓库基础信息列表
     *
     * @param planPDepot 预案仓库基础信息
     * @return 预案仓库基础信息
     */
    @Override
    public List<PlanPDepot> selectPlanPDepotList(PlanPDepot planPDepot)
    {
        return planPDepotMapper.selectPlanPDepotList(planPDepot);
    }

    /**
     * 新增预案仓库基础信息
     *
     * @param planPDepot 预案仓库基础信息
     * @return 结果
     */
    @Override
    public int insertPlanPDepot(PlanPDepot planPDepot)
    {
            return planPDepotMapper.insertPlanPDepot(planPDepot);
    }

    /**
     * 修改预案仓库基础信息
     *
     * @param planPDepot 预案仓库基础信息
     * @return 结果
     */
    @Override
    public int updatePlanPDepot(PlanPDepot planPDepot)
    {
        return planPDepotMapper.updatePlanPDepot(planPDepot);
    }

    /**
     * 批量删除预案仓库基础信息
     *
     * @param ids 需要删除的预案仓库基础信息主键
     * @return 结果
     */
    @Override
    public int deletePlanPDepotByIds(String[] ids)
    {
        return planPDepotMapper.deletePlanPDepotByIds(ids);
    }

    /**
     * 删除预案仓库基础信息信息
     *
     * @param id 预案仓库基础信息主键
     * @return 结果
     */
    @Override
    public int deletePlanPDepotById(String id)
    {
        return planPDepotMapper.deletePlanPDepotById(id);
    }
}


